package com.example.petplanet.mapper;


import com.example.petplanet.domain.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

@Mapper
public interface CommentDao {
    List<Comment> getCommentFromContent(Long contentId);
    int publishComment(Comment comment);
    int deleteMyComment(Long userId,Long commentId);

    Comment selectCommentId(Long id);
    
    int batchUpdateCommentGoodCount(List<Comment> comments);

    Set<Long> selectChildComments(Long commentId);

    int deleteComments(Set<Long> commentIds);

    Set<Long> getCommentIdsFromContent(Long contentId);
}


